package com.ziroom.finance.rabbitmq.common.email;


import com.ziroom.finance.rabbitmq.common.util.PropertiesUtil;

import java.io.File;

/**
 * 邮件实体
 *
 * @Author liyb58
 * @Date 2016/11/14 17:01
 * @return
 */
public class MailEntity {

    public MailEntity() {
    }

    public MailEntity(String content, String[] emailTO, String title) {
        this.content = content;
        this.emailTO = emailTO;
        this.title = title;
    }

    private File adjunct;
    /**
     * 邮件发送的内容
     */
    private String content;
    /**
     * 抄送
     */
    private String[] emailCC;
    /**
     * 发件人
     */
    private String emailFROM = PropertiesUtil.getPropValAsString("mail.emailFROM");
    /**
     * 收件人
     */
    private String[] emailTO;
    /**
     * 邮件服务器
     */
    private String host = PropertiesUtil.getPropValAsString("mail.host");
    /**
     * 密码
     */
    private String passward = PropertiesUtil.getPropValAsString("mail.passward");

    /**
     * 标题
     */
    private String title;
    /**
     * 用户名
     */
    private String username = PropertiesUtil.getPropValAsString("mail.username");

    public final File getAdjunct() {
        return adjunct;
    }

    public final void setAdjunct(File adjunct) {
        this.adjunct = adjunct;
    }

    public final String getContent() {
        return content;
    }

    public final void setContent(String content) {
        this.content = content;
    }

    public final String[] getEmailCC() {
        return emailCC;
    }

    public final void setEmailCC(String[] emailCC) {
        this.emailCC = emailCC;
    }

    public final String getEmailFROM() {
        return emailFROM;
    }

    public final void setEmailFROM(String emailFROM) {
        this.emailFROM = emailFROM;
    }

    public final String[] getEmailTO() {
        return emailTO;
    }

    public final void setEmailTO(String[] emailTO) {
        this.emailTO = emailTO;
    }

    public final String getHost() {
        return host;
    }

    public final void setHost(String host) {
        this.host = host;
    }

    public final String getPassward() {
        return passward;
    }

    public final void setPassward(String passward) {
        this.passward = passward;
    }

    public final String getTitle() {
        return title;
    }

    public final void setTitle(String title) {
        this.title = title;
    }

    public final String getUsername() {
        return username;
    }

    public final void setUsername(String username) {
        this.username = username;
    }

}
